// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_BPT_APPLICATION_ATTACHED
// * CreateDate    : 2012/3/20 14:37:10
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/20 14:37:10
// * LastChanger   : 2012/3/20 14:37:10
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class BptApplicationAttachedEntity : EntityBase
    {
        public BptApplicationAttachedTable TableSchema
        {
            get
            {
                return BptApplicationAttachedTable.Current;
            }
		}
		
		public BptApplicationAttachedEntity()
        {

        }
		
		public BptApplicationAttachedEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.AttachedId = Convert.ToString(CommonFunctions.ToObject(dr["ATTACHED_ID"]));
			this.BptApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["BPT_APPLICATION_ID"]));
			this.FileName = Convert.ToString(CommonFunctions.ToObject(dr["FILE_NAME"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
            this.UploadBy = Convert.ToString(CommonFunctions.ToObject(dr["UPLOAD_BY"]));
			this.UploadDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPLOAD_DATE"]));
			this.ExpiredDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["EXPIRED_DATE"]));
			this.FileType = Convert.ToString(CommonFunctions.ToObject(dr["FILE_TYPE"]));
        }
		
		public BptApplicationAttachedEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.AttachedId = Convert.ToString(CommonFunctions.ToObject(dr["ATTACHED_ID"]));
			this.BptApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["BPT_APPLICATION_ID"]));
			this.FileName = Convert.ToString(CommonFunctions.ToObject(dr["FILE_NAME"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
            this.UploadBy = Convert.ToString(CommonFunctions.ToObject(dr["UPLOAD_BY"]));
			this.UploadDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPLOAD_DATE"]));
			this.ExpiredDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["EXPIRED_DATE"]));
			this.FileType = Convert.ToString(CommonFunctions.ToObject(dr["FILE_TYPE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return BptApplicationAttachedTable.Current;
            }
        }
		
		#region Perporty List
        public string AttachedId
        {
            get { return Convert.ToString(GetData(BptApplicationAttachedTable.C_ATTACHED_ID)); }
            set { SetData(BptApplicationAttachedTable.C_ATTACHED_ID, value); }
        }
		
        public string BptApplicationId
        {
            get { return Convert.ToString(GetData(BptApplicationAttachedTable.C_BPT_APPLICATION_ID)); }
            set { SetData(BptApplicationAttachedTable.C_BPT_APPLICATION_ID, value); }
        }
		
        public string FileName
        {
            get { return Convert.ToString(GetData(BptApplicationAttachedTable.C_FILE_NAME)); }
            set { SetData(BptApplicationAttachedTable.C_FILE_NAME, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(BptApplicationAttachedTable.C_REMARK)); }
            set { SetData(BptApplicationAttachedTable.C_REMARK, value); }
        }

        public string UploadBy
        {
            get { return Convert.ToString(GetData(BptApplicationAttachedTable.C_UPLOAD_BY)); }
            set { SetData(BptApplicationAttachedTable.C_UPLOAD_BY, value); }
        }
		
        public DateTime UploadDate
        {
            get { return Convert.ToDateTime(GetData(BptApplicationAttachedTable.C_UPLOAD_DATE)); }
            set { SetData(BptApplicationAttachedTable.C_UPLOAD_DATE, value); }
        }
		
        public DateTime ExpiredDate
        {
            get { return Convert.ToDateTime(GetData(BptApplicationAttachedTable.C_EXPIRED_DATE)); }
            set { SetData(BptApplicationAttachedTable.C_EXPIRED_DATE, value); }
        }
		
        public string FileType
        {
            get { return Convert.ToString(GetData(BptApplicationAttachedTable.C_FILE_TYPE)); }
            set { SetData(BptApplicationAttachedTable.C_FILE_TYPE, value); }
        }
		
		#endregion
	}
	
	
}	

